//返回数据类型
export interface ResponseData {
  success: boolean
  code: number
  message: string
}
//返回用户信息类型
export interface User {
  id?: string | number
  gmtCreate?: string
  gmtModified?: string
  deleted?: boolean
  username: string
  password: string
  nickName: string
  roleName?: string
}
//返回的用户数组
export type items = User[]
//获取全部用户数据返回的登录类型
export interface UserResponseData extends ResponseData {
  data: {
    total: number
    items: items
    id: string
    gmtCreate: string
    gmtModified: string
    deleted: boolean
    username: string
    password: string
    nickName: string
    roleName: string
  }
}
//职位
export interface role {
  id?: number
  gmtCreate: string
  gmtModified: string
  deleted: false
  roleName: string
  remark: null
}
//所有职位
export type AllRole = role[]
//获取所有职位接口返回的数据类型
export interface RoleResponseData extends ResponseData {
  data: {
    assignRoles: AllRole
    allRolesList: AllRole
  }
}
